﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Truron.Utility;
using Truron.SysCenter.Model;

namespace Truron.Finance.Model
{
	[Serializable]
	[PrimaryKey("Id")]
	[Table("Finance_PayInvoiceItem")]
	[RedisKey("Finance_PayInvoiceItem")]
	public  class Finance_PayInvoiceItem: BaseData
	{
																						        public string ItemName {get;set;}
						        public int SecondSubjectId {get;set;}
						        public int TaxRate {get;set;}
						        public decimal Tax {get;set;}
						        public decimal PreTaxNum {get;set;}
						        public decimal InvoiceNum {get;set;}
					public void Create(UserCache userInfo)
		{
			this.CreateUser = userInfo.UserId; 
			this.CreateTime = DateTime.Now;
		}
		public void Modify(UserCache userInfo)
		{
			this.LastUpdateUser = userInfo.UserId;
			this.LastUpdateTime = DateTime.Now;
		}
	}


}
